import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '@/views/Layout/index.vue'
import mymenu from '@/views/Layout/Mymenu.vue'
import content from '@/views/Layout/Content.vue'
Vue.use(VueRouter)

const routes = [
  {
     path: '/',
     redirect: 'index'
  },
  {
    path:'/index',
    component:index,
    redirect:'mymenu',
    children:[
      {path:'/mymenu',component:mymenu},
      {path:'/content',component:content},
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
